#ifndef __STATICDATA_ITEMINFO2D_H__
#define __STATICDATA_ITEMINFO2D_H__

#include "DataInfoManagerTemplate2D.h"

class CItemInfo2D
{
public:
	int nItemType;
	int nItemType2;
	//char szItemName[64];
	std::string strItemName;
	int nCount;

	void Read(IFileVisitorIterator& rEV);
	void GetID(int & rX, int & rY)
	{
		rX = nItemType;
		rY = nItemType2;
	}
	void Update(const CItemInfo2D & rItemInfo2D);
	void Serialize(ISerializer & rSerializer);
};

typedef CDataInfoManagerTemplate2D< CItemInfo2D > CItemInfo2DManager;

DEF_MANAGER_INTERFACE_2D(ItemInfo2D, CItemInfo2D, CItemInfo2DManager)

#endif //__STATICDATA_ITEMINFO2D_H__